import request from '@/utils/request'

export function getTreeByParent (pId) {
  return request({
    url: '/org/info/getTreeByParent',
    method: 'get',
    data:{pId: pId}
  })
}

export function insert (params) {
  return request({
    url: '/org/info/add',
    method: 'post',
    params:params
  })
}

export function update (params) {
  return request({
    url: '/org/info/add',
    method: 'post',
    params:params
  })
}

export function del (id) {
  return request({
    url: '/org/info/delete',
    method: 'post',
    params:{id:id}
  })
}
